package com.jman.front.clients;

import com.jman.front.dto.PageBean;
import com.jman.front.dto.PageInfo;
import com.jman.front.dto.Resident;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("residentservice")
public interface ResidentClient {
    @PostMapping("/resident/getPage")
    PageBean<Resident> getInfoByPage(@RequestBody PageInfo pageInfo);

    @PutMapping("/resident/putInfo")
    Boolean updateResident(@RequestBody Resident resident);

    @DeleteMapping("/resident/delInfo/{id}")
    Boolean deleteById(@RequestParam Integer id);
}
